<template>
  <div>
    <header class="v-header" v-if="hideHeader">

      <a v-if="showBack" :href="backUrl">
        <div class="fl v-header-dv">
          <img class="img-width-1rem" src="../../static/img/common/arrow_back.png">
        </div>
      </a>

      <h1 class="v-header-title wordwrap omg">{{ headerName }}</h1>
    </header>
  </div>
</template>

<script>
  export default {
    props: {

      headerName: {
        type: String
      },
      showBack: {
        type: Boolean,
        default: false
      },
      backUrl: {
        type: String,
        default: ''
      }

    },

    data() {
      return {
        hideHeader: this.$store.state.hideHeader
      }
    }

  }
</script>
